package com.liufei1988.design.singleton;

import java.util.concurrent.atomic.AtomicLong;

public enum IdGeneratorE {
    INSTANCE;
    private AtomicLong id=new AtomicLong(0);
    public long getId(){
        return id.incrementAndGet();
    }
}
